package com.example.app;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.app.LogInPage;
import com.example.app.MyMission;
import com.example.app.R;

public class HomePage extends AppCompatActivity implements View.OnClickListener {

    private Button btn_1MyMission;
    private Button btn_2AddMission;
    private Button btn_3DataBase;
    private Button btn_4DataUpload;
    private Button btn_5InquiryStatics;
    private Button btn_6DeriveReport;
    private Button btn_7Information;
    private Button btn_8Exit;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_homepage);
        Init();
    }

    private void Init() {
        btn_1MyMission=findViewById(R.id.hp_1);
        btn_2AddMission=findViewById(R.id.hp_2);
        btn_3DataBase=findViewById(R.id.hp_3);
        btn_4DataUpload=findViewById(R.id.hp_4);
        btn_5InquiryStatics=findViewById(R.id.hp_5);
        btn_6DeriveReport=findViewById(R.id.hp_6);
        btn_7Information=findViewById(R.id.hp_info);
        btn_8Exit=findViewById(R.id.hp_back);

        btn_1MyMission.setOnClickListener(this);
        btn_2AddMission.setOnClickListener(this);
        btn_8Exit.setOnClickListener(this);





    }

    @Override
    public void onClick(View view) {
        switch(view.getId())
        {
            case R.id.hp_back:
                finish();
                break;
            case R.id.hp_1:
                startActivity(new Intent(this, MyMission.class));
                break;
            case R.id.hp_2:
        }
    }
}